from django.urls import path,include
from .views import UpdateThumbupView,CollectView,SpltDetailsView,GetSpltCommentView,SpltListView
from rest_framework.routers import DefaultRouter
urlpatterns = [
    path('spit/',SpltListView.as_view()),
    path('spit/<id>/collect/',CollectView.as_view()),
    path('spit/<id>/updatethumbup/',UpdateThumbupView.as_view()),
    path('spit/<id>/children/',GetSpltCommentView.as_view()),
    path('spit/<id>/',SpltDetailsView.as_view()),
]

# router = DefaultRouter()
# router.register(r'spit',SpitModelViewSet,basename='spit')
# urlpatterns += router.urls

